package com.bw.shop2208a.adapter

import com.bw.shop2208a.R
import com.bw.shop2208a.entity.SearchHistoryEntity
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class HistoryAdapter : BaseQuickAdapter<SearchHistoryEntity,BaseViewHolder>(R.layout.item_search) {
    override fun convert(holder: BaseViewHolder, item: SearchHistoryEntity) {
        holder.setText(R.id.tv,"${item.id}:${item.name}")
    }
}